package com.bobo.base.network.util;/*
 * Copyright (C) 2020 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */


public class UrlUtils {
    int DEFAULT_TIMEOUT = 20000;

    public String host = "https://wap.hongchengkeji.net/";
    private String Image_url = "http://images.hongchengkeji.net/";


    private static class SingleHolder {
        private static final UrlUtils SINGLE = new UrlUtils();
    }

    public static UrlUtils getInstance() {
        return SingleHolder.SINGLE;
    }

    public boolean isRandom;


    /**
     * @return
     */
    public String getUrl() {
        return host;
    }


    public void setUrl(boolean random) {
        isRandom = random;
    }

    public void sethost(String host) {
        this.host = host;
    }

    public String getImage_url() {
        return Image_url;
    }

    public void setImage_url(String image_url) {
        Image_url = image_url;
    }

}
